package com.john.blockchain.demo.mock.vo;

import java.io.Serializable;

/**
 * 交易信息
 * @author jiangguangtao 2018/4/14
 */
public class TransVo implements Serializable {
    private static final long serialVersionUID = 7950649212407043392L;
    private String id;
    private Long timestamp;
    private String sender;
    private String receiver;
    private Long transAmtFen;

    public TransVo() {
    }

    public TransVo(String id, String sender, String receiver, Long transAmtFen) {
        this.id = id;
        this.sender = sender;
        this.receiver = receiver;
        this.transAmtFen = transAmtFen;
        this.timestamp = System.currentTimeMillis();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public Long getTransAmtFen() {
        return transAmtFen;
    }

    public void setTransAmtFen(Long transAmtFen) {
        this.transAmtFen = transAmtFen;
    }

    @Override
    public String toString() {
        return "TransVo{" +
                "id='" + id + '\'' +
                ", timestamp=" + timestamp +
                ", sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                ", transAmtFen=" + transAmtFen +
                '}';
    }
}
